import React from 'react';
import ReactDOM from 'react-dom';
import TodoList from './TodoList';
import { Provider } from 'react-redux';
import store from './store/index';

const App = (
    // 提供器 将store提供给内部的组件
    <Provider store={store}>
        <TodoList />
    </Provider>
);
ReactDOM.render(App, document.getElementById('root'));